﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CApFLEXSettingsData
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.PrivateImplementationDetails;


namespace DnProcessSimulateCommands;

public class CApFLEXSettingsData
{
  public CApFLEXSettingsData()
  {
    this.ConsiderAllPartsAsObstacles = TxCable.Settings.ConsiderAllPartsAsObstacles;
    this.GravityDirection = TxCable.Settings.GravityDirection;
    this.SmoothCableDisplay = TxCable.Settings.SmoothCableDisplay;
    this.TwistLinesOnCables = TxCable.Settings.TwistLinesOnCables;
    this.ConstraintColorsType = TxCable.Settings.ConstraintColorsType;
  }

  public bool ConsiderAllPartsAsObstacles { get; set; }

  public TxCableSettings.TxCableGravityDirection GravityDirection { get; set; }

  public bool SmoothCableDisplay { get; set; }

  public bool TwistLinesOnCables { get; set; }

  public TxCableSettings.TxCableConstraintColorsType ConstraintColorsType { get; set; }

  public void ApplyCableSettings()
  {
    TxFlxCableSettingsEx.ApplyCableSettings(TxCable.Settings, new TxCableSettingsData()
    {
      ConsiderAllPartsAsObstacles = this.ConsiderAllPartsAsObstacles,
      GravityDirection = this.GravityDirection,
      SmoothCableDisplay = this.SmoothCableDisplay,
      TwistLinesOnCables = this.TwistLinesOnCables,
      ConstraintColorsType = this.ConstraintColorsType
    });
  }
}
